package com.igeek.yygh.model.healthy;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-08-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("healthy")
@ApiModel(value="Healthy对象", description="")
public class Healthy {
    private Integer id;
    private Integer olderId;
    private String weight;
    private String heart;
    private String blood;
    private String sugar;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String sex;
    @TableField(exist = false)
    private Integer point;
    @TableField(exist = false)
    private String condition;
    @TableField(exist = false)
    private String day;

    //自动插入
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}